package com.findFish.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.system.mapper.RobotFishCommandsMapper;
import com.findFish.system.domain.RobotFishCommands;
import com.findFish.system.service.IRobotFishCommandsService;

/**
 * 机器鱼控制指令Service业务层处理
 * 
 * @author admin
 * @date 2025-03-31
 */
@Service
public class RobotFishCommandsServiceImpl implements IRobotFishCommandsService 
{
    @Autowired
    private RobotFishCommandsMapper robotFishCommandsMapper;

    /**
     * 查询机器鱼控制指令
     * 
     * @param id 机器鱼控制指令主键
     * @return 机器鱼控制指令
     */
    @Override
    public RobotFishCommands selectRobotFishCommandsById(Long id)
    {
        return robotFishCommandsMapper.selectRobotFishCommandsById(id);
    }

    /**
     * 查询机器鱼控制指令列表
     * 
     * @param robotFishCommands 机器鱼控制指令
     * @return 机器鱼控制指令
     */
    @Override
    public List<RobotFishCommands> selectRobotFishCommandsList(RobotFishCommands robotFishCommands)
    {
        return robotFishCommandsMapper.selectRobotFishCommandsList(robotFishCommands);
    }

    /**
     * 新增机器鱼控制指令
     * 
     * @param robotFishCommands 机器鱼控制指令
     * @return 结果
     */
    @Override
    public int insertRobotFishCommands(RobotFishCommands robotFishCommands)
    {
        return robotFishCommandsMapper.insertRobotFishCommands(robotFishCommands);
    }

    /**
     * 修改机器鱼控制指令
     * 
     * @param robotFishCommands 机器鱼控制指令
     * @return 结果
     */
    @Override
    public int updateRobotFishCommands(RobotFishCommands robotFishCommands)
    {
        return robotFishCommandsMapper.updateRobotFishCommands(robotFishCommands);
    }

    /**
     * 批量删除机器鱼控制指令
     * 
     * @param ids 需要删除的机器鱼控制指令主键
     * @return 结果
     */
    @Override
    public int deleteRobotFishCommandsByIds(Long[] ids)
    {
        return robotFishCommandsMapper.deleteRobotFishCommandsByIds(ids);
    }

    /**
     * 删除机器鱼控制指令信息
     * 
     * @param id 机器鱼控制指令主键
     * @return 结果
     */
    @Override
    public int deleteRobotFishCommandsById(Long id)
    {
        return robotFishCommandsMapper.deleteRobotFishCommandsById(id);
    }
}
